package com.xydtech.ecard.ecard.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;

/**
 * 电子名片分享记录对象 ecard_share_record
 * 
 * @author busiplat
 * @date 2021-09-14
 */
public class EcardApiShareRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录编号 */
    private Long recordId;

    @ApiModelProperty(notes = "客户经理微信注册ID")
    private String custmanagerRegistId;

    /** 分享人编号 */
    @ApiModelProperty(notes = "分享人编号")
    @Excel(name = "分享人编号")
    private String registId;

    /** 员工编号 */
    @Excel(name = "员工编号")
    @ApiModelProperty(notes = "员工编号")
    private String userCode;

    /** 分享时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(notes = "分享时间")
    @Excel(name = "分享时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date shareTime;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }

    public String getCustmanagerRegistId() {
        return custmanagerRegistId;
    }

    public void setCustmanagerRegistId(String custmanagerRegistId) {
        this.custmanagerRegistId = custmanagerRegistId;
    }

    public void setRegistId(String registId)
    {
        this.registId = registId;
    }

    public String getRegistId()
    {
        return registId;
    }
    public void setUserCode(String userCode) 
    {
        this.userCode = userCode;
    }

    public String getUserCode() 
    {
        return userCode;
    }
    public void setShareTime(Date shareTime) 
    {
        this.shareTime = shareTime;
    }

    public Date getShareTime() 
    {
        return shareTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("custmanagerRegistId", getCustmanagerRegistId())
            .append("registId", getRegistId())
            .append("userCode", getUserCode())
            .append("shareTime", getShareTime())
            .toString();
    }
}
